Matthias Clasen [Mon, 22 Apr 2013 01:31:29 +0000 (21:31 -0400)]
Make transition-duration unsigned
The code doesn't deal with negative durations, so better
don't allow them.
Matthias Clasen [Mon, 22 Apr 2013 01:16:46 +0000 (21:16 -0400)]
Change transition-type property type
This is an enum, so declare the property as such.
Matthias Clasen [Mon, 22 Apr 2013 01:16:24 +0000 (21:16 -0400)]
Add a GtkStack example to gtk-demo
Matthias Clasen [Mon, 22 Apr 2013 00:41:22 +0000 (20:41 -0400)]
GtkStack: warn if child names are not unique
Matthias Clasen [Mon, 22 Apr 2013 00:27:53 +0000 (20:27 -0400)]
Add new symbols
Matthias Clasen [Mon, 22 Apr 2013 00:19:51 +0000 (20:19 -0400)]
Add new api to the docs
Matthias Clasen [Mon, 22 Apr 2013 00:17:40 +0000 (20:17 -0400)]
GtkStack: add vertical slide transitions
We allow transitions that slide up or down.
Matthias Clasen [Sun, 21 Apr 2013 23:53:57 +0000 (19:53 -0400)]
GtkStack: rtl flipping for animation
We switch slide-right and slight-left when in rtl.
Matthias Clasen [Sun, 21 Apr 2013 18:22:35 +0000 (14:22 -0400)]
Add a way to specify transition types on the fly
Add a gtk_stack_set_visible_child_full that takes a
transition type.
Matthias Clasen [Sun, 21 Apr 2013 15:05:38 +0000 (11:05 -0400)]
Add docs for GtkStackSwitcher
Matthias Clasen [Sun, 21 Apr 2013 14:14:46 +0000 (10:14 -0400)]
Add docs for GtkStack
Matthias Clasen [Sun, 21 Apr 2013 11:51:14 +0000 (07:51 -0400)]
Add GtkStack
Add separate GtkStack and GtkStackSwitcher widgets that are an
alternative to GtkNotebook. Additionally, GtkStack supports
animated transitions when changing pages.
These widgets were initially developed in libgd.
Federico Mena Quintero [Sun, 21 Apr 2013 22:21:37 +0000 (18:21 -0400)]
Merge branch 'master' into places-sidebar
Federico Mena Quintero [Sun, 21 Apr 2013 22:20:46 +0000 (18:20 -0400)]
Oops, only show 'Connect to server' if the caller enabled it
Cosimo Cecchi [Sun, 21 Apr 2013 20:56:25 +0000 (16:56 -0400)]
window: don't forget to fetch title border when not on CSD
We still need to respect this border value even when we're not running
under CSD, since we support setting a custom titlebar in all cases.
The border/style magic in gtk_window_draw() really needs to be separated
out into logical pieces soon, but for now let's keep a consistent
behavior with the previous code.
Federico Mena Quintero [Sun, 21 Apr 2013 19:51:49 +0000 (15:51 -0400)]
Merge branch 'places-sidebar'
Cosimo Cecchi [Sun, 21 Apr 2013 18:44:24 +0000 (14:44 -0400)]
window: only account for decoration borders when we're client decorated
Federico Mena Quintero [Sat, 20 Apr 2013 23:19:30 +0000 (19:19 -0400)]
Add a selected_volume argument to ::populate-popup
Nautilus needs this in order to implement a Format command for a volume's popup menu.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Matthias Clasen [Sun, 21 Apr 2013 03:37:10 +0000 (23:37 -0400)]
csd: Drop content_window
Instead of reparenting the content, use input-only windows to
set cursors and capture clicks on the window frame. This avoids
some of the problems that were introduced by content_window, such
as black flashes and non-working opacity.
Federico Mena Quintero [Sat, 20 Apr 2013 23:14:59 +0000 (19:14 -0400)]
Sync from nautilus commit
500770e8de18b07392ffa4435372525d5d03c688
Add a Connect to Server menu item, a show-connect-to-server property, and a show-connect-to-server signal.
Federico Mena Quintero [Sat, 20 Apr 2013 20:21:33 +0000 (16:21 -0400)]
Remove the switch location timer during drag_leave
So that hovering in and out of the sidebar quickly doesn't cause a location change in the caller.
Federico Mena Quintero [Sat, 20 Apr 2013 20:00:00 +0000 (16:00 -0400)]
Merge branch 'places-sidebar'
Cosimo Cecchi [Sat, 20 Apr 2013 19:53:10 +0000 (15:53 -0400)]
Sync from nautilus commit
d2bfffc574c1e6305d862c041b35c9c45ba67674
Coding style fix.
Cosimo Cecchi [Sat, 20 Apr 2013 19:51:07 +0000 (15:51 -0400)]
Sync from nautilus commit
277a6a45bee8186b2493ad1b286234ac52f1aed8
Use gtk_tree_view_set_activate_on_single_click().
William Jon McCann [Sat, 20 Apr 2013 19:41:08 +0000 (15:41 -0400)]
Sync nautilus commit
95400548176688f3d2f5e8888f48410756bd96b8
Switch location on hovering the places sidebar during a DnD operation -
kind of for spring-loaded folders.
Federico Mena Quintero [Sat, 20 Apr 2013 18:56:16 +0000 (14:56 -0400)]
Merge branch 'places-sidebar'
Federico Mena Quintero [Sat, 20 Apr 2013 18:20:07 +0000 (14:20 -0400)]
Remove the drop feedback row a little time after drag_leave
Since ::drag-leave gets emitted before ::drag-drop, we can't just remove the drop feedback row
in drag-leave, as we *need* it during drag-drop. So, we use the same trick as in testdnd.c - we
install a timeout handler in our drag-leave callback, and remove the feedback in the timeout callback.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Sat, 20 Apr 2013 16:30:48 +0000 (12:30 -0400)]
Drop in the right place when the feedback row is active
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Sat, 20 Apr 2013 15:42:04 +0000 (11:42 -0400)]
Actually use the drop_state, instead of encoding things in new_bookmark_index
This lets us keep the new_bookmark_index untouched even when the drop state goes from armed to unarmed.
That will in turn let us drop in the right place...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Victor Ibragimov [Sat, 20 Apr 2013 09:28:18 +0000 (14:28 +0500)]
Tajik translation updated
Victor Ibragimov [Sat, 20 Apr 2013 08:39:19 +0000 (13:39 +0500)]
Tajik translation update
Victor Ibragimov [Sat, 20 Apr 2013 04:46:02 +0000 (09:46 +0500)]
Updated translation for Tajik
Dimitris Spingos [Sat, 20 Apr 2013 02:42:43 +0000 (05:42 +0300)]
Updated Greek translation
Matthias Clasen [Sat, 20 Apr 2013 00:06:52 +0000 (20:06 -0400)]
po: Add a rule to generate files
This should help translators generate an updates pot file.
Just doing make -C po gtk30.pot should work now, no need to
build the entire module.
Matthias Clasen [Sat, 20 Apr 2013 00:05:17 +0000 (20:05 -0400)]
Strip XF86 from keyboard label msgids
The msgids have changed, but all the translations still apply.
Matthias Clasen [Fri, 19 Apr 2013 23:35:49 +0000 (19:35 -0400)]
Update keyname tables
This commit is very similar to
8c8853a1f5d29d447c16ba5d92bdb7bb442ee721
We update the keynames.txt file from gdkkeynames.h, and we update
keynames-translate.txt to include all the keysym names that we want
to have translations for. Also strip the XF86 from the translatable
keysym names, since we are returning those names now from
gdk_keyval_name().
keyname-table.h is regenerated from these updated files.
Matthias Clasen [Fri, 19 Apr 2013 23:29:13 +0000 (19:29 -0400)]
Keep XF86 keysym names working
These names are unfortunately stored in gsettings around
the world, so we can't really stop supporting them.
Matthias Clasen [Fri, 19 Apr 2013 23:28:09 +0000 (19:28 -0400)]
Add some tests for keysyms
Not very extensive, but we do test that XF86 keysym names
keep working.
Matthias Clasen [Fri, 19 Apr 2013 21:28:35 +0000 (17:28 -0400)]
Update gdkkeysyms.h header
Regenerate these files from the X11 keysymdef.h file, using
gdkkeysyms-update.pl. The only change is the addition of
GDK_KEY_AudioMicMute.
Federico Mena Quintero [Fri, 19 Apr 2013 22:26:39 +0000 (17:26 -0500)]
Merge branch 'places-sidebar'
Federico Mena Quintero [Fri, 19 Apr 2013 22:20:12 +0000 (17:20 -0500)]
treeview: Use equal areas in the computation of drag dest row positions
We used to divide the row in thirds vertically, and use the outer thirds for GTK_TREE_VIEW_DROP_BEFORE and AFTER, respectively.
Now we use *fourths*. This is so that we get equal areas for these:
GTK_TREE_VIEW_DROP_BEFORE
GTK_TREE_VIEW_DROP_INTO_OR_BEFORE
GTK_TREE_VIEW_DROP_INTO_OR_AFTER
GTK_TREE_VIEW_DROP_AFTER
This makes hovering tree rows much more positive.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 19 Apr 2013 22:22:39 +0000 (17:22 -0500)]
Adjust the drag destination row when it is above the currently highlighted row
This makes the feedback accurate and without hysteresis. Haven't I written this code ten times before?
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 19 Apr 2013 20:49:54 +0000 (15:49 -0500)]
Dropping on the feedback row is always possible
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 19 Apr 2013 20:03:17 +0000 (15:03 -0500)]
Add a temporary row for feedback when inserting a bookmark is possible
We'll prettify this gradually.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Victor Ibragimov [Fri, 19 Apr 2013 22:10:36 +0000 (00:10 +0200)]
[l10n] Add Tajik translation
Matthias Clasen [Fri, 19 Apr 2013 21:10:39 +0000 (17:10 -0400)]
Revert "gdk: Update keynames list from gdkkeysyms.h"
This reverts commit
8c8853a1f5d29d447c16ba5d92bdb7bb442ee721.
Benjamin Otte [Fri, 19 Apr 2013 20:17:17 +0000 (16:17 -0400)]
gdk: Unvfuncify gdk_display_manager_open_display()
This looks like a pretty stupid patch, but it's only a step towards the
ultimate end goal: Get rid of all the displaymanagers.
Benjamin Otte [Fri, 19 Apr 2013 20:22:32 +0000 (16:22 -0400)]
Revert "wayland: Cache the discovery connection and reuse if possible"
This reverts commit
524ce7f88e26a498c43729f99fda564f5e222582.
Benjamin Otte [Fri, 19 Apr 2013 19:51:25 +0000 (15:51 -0400)]
wayland: Get rid of generic macros
They're unused.
Benjamin Otte [Fri, 19 Apr 2013 19:50:38 +0000 (15:50 -0400)]
broadway: Get rid of generic macros
Use existing API instead.
Benjamin Otte [Fri, 19 Apr 2013 19:36:10 +0000 (15:36 -0400)]
gdk: Update keynames list from gdkkeysyms.h
grep \#define gdkkeysyms.h | sed "s/#define GDK_KEY_\(.*\) \(.*\)/\2
\1/" | grep -v \#define | sort > keynames.txt
./gen-keyname-table.pl keynames.txt keynames-translate.txt
https://bugzilla.gnome.org/show_bug.cgi?id=698385
Benjamin Otte [Wed, 17 Apr 2013 22:04:54 +0000 (23:04 +0100)]
x11: Simplify function
Displays get made default displays automatically, so there's no need to
do it in the vfunc.
Benjamin Otte [Wed, 17 Apr 2013 22:04:05 +0000 (23:04 +0100)]
displaymanager: Emit display-opened directly
Instead of letting every backend do it manually.
Benjamin Otte [Wed, 17 Apr 2013 22:00:00 +0000 (23:00 +0100)]
quartz: Emit GdkDisplay::opened signal
Benjamin Otte [Wed, 17 Apr 2013 21:59:21 +0000 (22:59 +0100)]
win32: Emit GdkDisplay::opened signal
Benjamin Otte [Wed, 17 Apr 2013 21:56:22 +0000 (22:56 +0100)]
display: Add display to displaymanager later
Instead of GdkDisplay::init, only add the display to the display manager
in GdkDisplay::opened. This avoids spurious changes of the default
display in gtk_init() when we're trying to find the one that works and
try to open lots of different ones.
Benjamin Otte [Wed, 17 Apr 2013 21:53:42 +0000 (22:53 +0100)]
display: Make opened signal have a vfunc
... instead of g_signal_connect()ing in every init function.
Benjamin Otte [Tue, 16 Apr 2013 15:29:05 +0000 (17:29 +0200)]
gdk: Refactor function
Split out a GdkBackend type and iterate over it.
Matthias Clasen [Fri, 19 Apr 2013 19:22:03 +0000 (15:22 -0400)]
extract-strings: Deal with multiline strings
When putting out N_(...) macros, we must split multiline strings,
otherwise xgettext complains.
Matthias Clasen [Fri, 19 Apr 2013 18:39:23 +0000 (14:39 -0400)]
Revert more POTFILES.in breakage
Piotr Drąg [Fri, 19 Apr 2013 18:27:40 +0000 (20:27 +0200)]
Revert adding .ui files to POTFILES.in
This breaks the build unfortunately. Developers will need to resolve that one.
Piotr Drąg [Fri, 19 Apr 2013 17:40:56 +0000 (19:40 +0200)]
Updated POTFILES.in
Oops.
Colin Walters [Fri, 19 Apr 2013 17:27:22 +0000 (13:27 -0400)]
Remove "tg" from po/LINGUAS until po-properties is fixed
Commit
dcad786ba040413dd10e416d03d0cf7f3df226b6 introduced "tg" but
didn't add po-properties/tg.po, which is necessary in order for the
build to not break.
Therefore I'm removing tg until the file is added.
Piotr Drąg [Fri, 19 Apr 2013 17:18:52 +0000 (19:18 +0200)]
Updated POTFILES.in
Federico Mena Quintero [Fri, 19 Apr 2013 16:25:03 +0000 (11:25 -0500)]
Move the drop feedback code to stub functions
For now it is the old, simple call to gtk_tree_view_set_drag_dest_row(). We'll do something
fancier in the following commits.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 19 Apr 2013 16:00:36 +0000 (11:00 -0500)]
Add a DropState enum to the internal state of the sidebar
We want to show a little animation when a DnD operation is happening and the user hovers
between existing bookmarks. The animation should indicate the user that he's about to
create a new bookmark from the file right there.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
P. F. Chimento [Wed, 17 Apr 2013 08:33:43 +0000 (10:33 +0200)]
doc: Documented icon-shadow CSS property
The docs say that text-shadow applies a drop shadow to both text
and icons, but icons need to use the icon-shadow property.
https://bugzilla.gnome.org/show_bug.cgi?id=698181
Matthias Clasen [Fri, 19 Apr 2013 14:07:44 +0000 (10:07 -0400)]
Fix mouse interaction in combo cell renderer
Pass the event on when calling gtk_cell_editable_start_editing.
https://bugzilla.gnome.org/show_bug.cgi?id=504901
Rob Bradford [Fri, 19 Apr 2013 12:59:58 +0000 (13:59 +0100)]
wayland: Cache the discovery connection and reuse if possible
This will prevent us opening, closing and reopening the same display
connection in the majority of cases.
https://bugzilla.gnome.org/show_bug.cgi?id=694465
Victor Ibragimov [Fri, 19 Apr 2013 12:27:17 +0000 (17:27 +0500)]
Tajik Translation updated
Victor Ibragimov [Fri, 19 Apr 2013 12:23:35 +0000 (17:23 +0500)]
Tajik translation added (translation is still in progress)
Ryan Lortie [Thu, 18 Apr 2013 11:11:15 +0000 (07:11 -0400)]
menu binding docs: Link to insert_action_group()
It's pretty useless to make a menu without actions behind it and people
who are using gtk_menu_shell_bind_model() directly are probably not
interested in doing it the GtkApplicationWindow way (so they won't get
the "app" and "win" groups for free). People are going to need to call
gtk_widget_insert_action_group(), so mention this in the docs to help
them along.
Christian Persch [Fri, 15 Mar 2013 17:48:44 +0000 (18:48 +0100)]
bindings: Fix gtk_binding_entry_skip
This fixes a regression from commit
9a3466832cc73ae29b704547747b8699132c1250.
https://bugzilla.gnome.org/show_bug.cgi?id=695380
Benjamin Otte [Tue, 16 Apr 2013 13:27:15 +0000 (15:27 +0200)]
gdk: Unvfuncify generic key functions
This makes Wayland and X11 no longer call into XKB and libX11 for these
functions but use GDK's own copy of these functions, just like the
win32, quartz and broadway backends.
Benjamin Otte [Tue, 16 Apr 2013 13:24:02 +0000 (15:24 +0200)]
gdk: Refactor default key vfuncs
Instead of copying them all over the place, keep a default
implementation around.
Benjamin Otte [Tue, 16 Apr 2013 11:02:23 +0000 (13:02 +0200)]
gdk: Refactor gdk_keyval_convert_case()
... so it doesn't export the function anymore.
Benjamin Otte [Mon, 15 Apr 2013 13:54:50 +0000 (15:54 +0200)]
broadway: Delete 2 files doing nothing
A function was doing nothing but calling a function that was in its own
source file doing nothing but calling a function in its own source file
that did nothing.
Benjamin Otte [Mon, 15 Apr 2013 13:52:10 +0000 (15:52 +0200)]
docs: Move property section docs to correct file
Juan Pablo Ugarte [Mon, 15 Apr 2013 20:24:48 +0000 (17:24 -0300)]
GtkSwitch: moved focus drawing from outside border inside the handle.
Federico Mena Quintero [Tue, 16 Apr 2013 00:29:37 +0000 (19:29 -0500)]
Merge branch 'merge-places-sidebar'
This is the new GtkPlacesSidebar widget, which is the sidebar used in
GtkFileChooser to display a list of places/folders that the user may
want to use. File managers are encouraged to use this widget for
their own global list of folders.
Tristan Van Berkom [Fri, 12 Apr 2013 01:37:01 +0000 (20:37 -0500)]
Load the file chooser's widgets from the .ui file
This is Tristan's *excellent* work, minus the old code for the shortcuts bar - that is all done
in GtkPlacesSidebar now.
The UI gets loaded from a Glade resource; most of the old code to create the UI by hand is gone.
There is still code for save_widgets_create(); this needs to be moved into the UI file, but it
is not a big deal.
gtk_file_chooser_default_init() calls a new post_process_ui() that takes care of all the things
that cannot be done directly in Glade.
Federico Mena Quintero [Sat, 13 Apr 2013 00:57:35 +0000 (19:57 -0500)]
For now, add GtkPlacesSidebar to the Glade catalog for private widgets
Although GtkPlacesSidebar is a public widget, we can't have that in Glade's general catalog
as this branch is not merged into GTK+ proper yet. We'll move the widget to Glade's
catalog when this is done.
Federico Mena Quintero [Sat, 13 Apr 2013 00:58:16 +0000 (19:58 -0500)]
Add .ui file for GtkFileChooserDefault
Nik Kalach [Mon, 15 Apr 2013 19:42:57 +0000 (21:42 +0200)]
Updated Interlingua translation
Benjamin Otte [Mon, 15 Apr 2013 13:40:55 +0000 (15:40 +0200)]
gdk: Make atoms handled generically
This is another step towards making GdkDisplayManager backend-agnostic.
Most of the backends profit from this as their atom implementations
where generic anyway - x11 needed that to allow multiple X displays and
broadway, quartz and wayland don't have the concept of displays.
The X11 backend still did things, so I only #if 0'd some code but did
not actually update anything.
Benjamin Otte [Wed, 10 Apr 2013 21:27:52 +0000 (23:27 +0200)]
gdk: Remove unused function
Benjamin Otte [Wed, 10 Apr 2013 21:11:52 +0000 (23:11 +0200)]
displaymanager: Handle list of displays in base class
This moves the add/remove_display() functions from the subclasses to
GdkDisplay and GdkDisplayManager. It also gets rid of the list_displays
vfunc.
Simon Kågedal Reimer [Tue, 9 Apr 2013 21:10:38 +0000 (23:10 +0200)]
doc: Clarify gtk_widget_queue_draw_region() doc
Benjamin Otte [Tue, 9 Apr 2013 11:32:03 +0000 (13:32 +0200)]
displaymanager: Move set_default_display vfunc
... to GdkDisplayClass.make_default. It's only implemented by X11
anyway.
Benjamin Otte [Tue, 9 Apr 2013 11:25:31 +0000 (13:25 +0200)]
displaymanager: Handle the default display
... instead of having every backend do it on their own.
Alban Browaeys [Thu, 21 Mar 2013 08:45:32 +0000 (09:45 +0100)]
print: disconnect source_changed_handler on printeroptionwidget finalize
Printing a web page without window.print (which still segfault),
that is Ctrl+P is fixed (does not attempt to execute the
source_changed_handler on a printeroptionwidget that has been
destroyed) by disconnecting this handler in the printeroptionwidget
finalize.
https://bugzilla.gnome.org/show_bug.cgi?id=696622
Volker Sobek [Tue, 8 May 2012 01:32:28 +0000 (03:32 +0200)]
gtk-demo: Fix typo
https://bugzilla.gnome.org/show_bug.cgi?id=675649
Carlos Garcia Campos [Wed, 3 Oct 2012 17:24:52 +0000 (19:24 +0200)]
gtkprintjob: release the surface and backend before the output io channel
If the GtkPrintJob is freed too early when the surface has been created
but the job hasn't been sent to the printer, it's possible that the
file print backend tries to write to the io chaneel when it is already
closed. This produces runtime critical warnings:
GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel->is_writeable' failed
https://bugzilla.gnome.org/show_bug.cgi?id=685420
Carlos Garcia Campos [Wed, 3 Oct 2012 17:34:09 +0000 (19:34 +0200)]
gtkprintbackendfile: Fix infinite loop in _cairo_write()
It can happen if the io channel has been closed. In that case
g_io_channel_write_chars() returns early because of a g_return macro
that checks if the io channel is writable. When returning from g_return
macros, the bytes written output parameter is not updated and the error
is not filled, so the error is not detected and the written variable is
used uninitialized. We should check the return value of
g_io_channel_write_chars() to break the loop.
https://bugzilla.gnome.org/show_bug.cgi?id=685419
ammonkey [Wed, 8 Aug 2012 17:07:17 +0000 (19:07 +0200)]
fix mem leak in gtk_drag_set_icon_surface, destroy pattern
https://bugzilla.gnome.org/show_bug.cgi?id=681446
Matthias Clasen [Sat, 13 Apr 2013 23:48:38 +0000 (19:48 -0400)]
Precache more atoms
Add a few more entries to the list of precached atoms.
Matthias Clasen [Sat, 13 Apr 2013 21:20:05 +0000 (17:20 -0400)]
wayland: Don't get the shell surface twice
Noticed by Pu Xingyu,
https://bugzilla.gnome.org/show_bug.cgi?id=697947
Matthias Clasen [Sat, 13 Apr 2013 20:17:24 +0000 (16:17 -0400)]
Revert "Use natural size to set adjustment ranges"
This reverts commit
666d10ec7676a15b6861b785397563cbd4ef21e6.
This change severely broke any treeviews without horizontal
scrollbars. Basically, ellipsization never kicks in, and instead
the treeview content just extends outside the visible area,
rendering it inaccessible. This broke e.g. the control-center
keyboard shortcuts panel, the gnome-disks device list, etc etc.
Matthias Clasen [Sat, 13 Apr 2013 02:45:13 +0000 (22:45 -0400)]
csd: Don't use a content_window for o-r windows
This fixes drawing of dnd icons.
https://bugzilla.gnome.org/show_bug.cgi?id=697886
Rob Bradford [Fri, 12 Apr 2013 17:39:20 +0000 (18:39 +0100)]
wayland: Don't "probe" for a Wayland compositor if started from compositor
In the case that the client is started directly by the compositor the
WAYLAND_SOCKET environment variable is set containing the fd to use that was
created by a socketpair.
This environment variable is consumed by a call to wl_display_connect so a
second call will not take advantage of it.
https://bugzilla.gnome.org/show_bug.cgi?id=697673